package com.jin.webvideo.videoCache.policy.condition;

public class OrCondition<T> extends BinocularCondition<T>{
    public OrCondition(Condition<T> c1, Condition<T> c2) {
        super(c1, c2);
    }

    @Override
    public boolean compute(Condition<T> c1, Condition<T> c2, T data) {
        return c1.compute(data) || c2.compute(data);
    }
}
